import * as types from './mutation-types'

export default {
  saveUserInformation({ commit }, user) {
    commit(types.SAVE_USER_INFOMATION, user)
  },
  clearUserInfomation({ commit }) {
    commit(types.CLEAR_USERI_NFOMATION)
  },
  saveStep({ commit }, step) {
    commit(types.SAVE_STEP, step)
  },
  changePassUsePhone({ commit }, phone) {
    commit(types.CHANGE_PASS_USE_PHONE, phone)
  },
  changeCity({ commit }, location) {
    commit(types.CHANGE_CITY, location)
  },
  clearCityInfo({ commit }) {
    commit(types.CLEAR_CITY_INFO)
  },
  onlyChangeCity({ commit }, name) {
    commit(types.ONLY_CHANGE_CITY, name)
  }
}